package com.ruoyi.framework.util;

import com.ruoyi.system.domain.SysUser;
import com.ruoyi.system.domain.communiry.FzSCommunity;
import org.apache.shiro.session.Session;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

import javax.servlet.http.HttpSession;

public class GetSessionValueUtil {

    public static synchronized String getCommunity(){
            Session session=ShiroUtils.getSession();
        return ((FzSCommunity)session.getAttribute("ycommunity")).getCommunityId();
    }



}
